package com.gitee.chili.leisure.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * TaskExecutorProperties
 *
 * @author week solider
 * @since 2020.09.24
 */
@Data
@Component
@ConfigurationProperties("spring.timer.task")
public class TaskExecutorProperties {

    /** 核心线程数 */
    private Integer corePoolSize;

    /** 最大线程数 */
    private Integer maxPoolSize;

    /** 队列容量 */
    private Integer queueCapacity;

    /** 线程活跃时间（秒） */
    private Integer keepAliveSeconds;
}
